<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Badger - handles authentication, authorization, and user management
 *
 * Utilizes OB_Session
 * +- XAcms -+
 * author: Chris Lunsford
 */
class Dashboard {

	var $userid = $this->CI->UserModel->getUserByName($this->CI->session->userdata('username'));
	
	function __construct() {
		$this->CI =& get_instance();
		$this->CI->load->model('UserModel');
	}
	
	function showBoard(){
		$this->load->model('Dashboard');
		$userGroups = $this->_getUserGroups();
		$dashboardItems = $this->getDashboardItems();
		
		
		foreach($dashboardItems->result() as $row){
			$temp[] = $row->item;
			
		}
		
		
		
		
		
	}
	
	function _getUserGroups(){
		if($this->user!=null) return $this->UserModel->getUserAssigns($userid->userid);
		else return 'xa';
	}